package com.clearliang.jpushframe;

import android.content.Context;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by ClearLiang on 2019/2/15
 * <p>
 * Function :
 */
public class JPushUtil {
    private static JPushUtil instance;

    private JPushUtil() {
    }

    public static JPushUtil getInstance() {
        if (instance == null) {
            synchronized (JPushUtil.class) {
                if (instance == null) {
                    instance = new JPushUtil();
                }
            }
        }
        return instance;
    }

    public void initJPush(Context context) {
        JPushInterface.setDebugMode(true);
        JPushInterface.init(context);
    }
}
